package com.ilikesoup.instant.proxy;

import net.sf.cglib.proxy.Enhancer;

public class CGLibProxy {

    public static void main(String[] args) {
        Enhancer enhancer = new Enhancer();
        enhancer.setSuperclass(Ott.class);
        enhancer.setCallback(new LogInterceptor());
        Ott o = (Ott)enhancer.create();
        o.setCode("123");
        o.setName("abc");
    }


}
